import { App } from "vue";
import { registerFormDetailProvider } from "@ibiz-template/runtime";
import FormItem from "./i-biz-form-item.vue";
import { FormItemProvider } from "./i-biz-form-item.provider";
import FormItemContainer from "./form-item-container/i-biz-form-item-container.vue";

export const IBizFormItem = {
  install(v: App) {
    v.component("IBizFormItem", FormItem);
    v.component("IBizFormItemContainer", FormItemContainer);
    registerFormDetailProvider("FORMITEM", () => new FormItemProvider());
  },
};

export default IBizFormItem;
